<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <p>{{msg}}</p>
      <p>{{c}}</p>
      <p>{{bigC()}}</p>
      <button @click="c = 5">按钮</button>
      <button @click="msg = msg + 1">按钮</button>
    </div>

    <script src="./vue.js"></script>

    <script>
      new Vue({
        el: '#app',
        data: {
          c: 1,
          msg: 'xxx',
        },
        methods: {
          bigC() {
            console.log('methods中的bigC执行了')
            return this.c * 10
          },
        },
      })
    </script>
  </body>
</html>
